/**
 * 
 */
package com.veketor;

/**
 * @author vrodrigo
 *
 */
public final class tools {
	   private static String OS = null;
	   public static String getOsName()
	   {
	      if(OS == null) { OS = System.getProperty("os.name"); }
	      return OS;
	   }
	   public static boolean isWindows()
	   {
	      return getOsName().startsWith("Windows");
	   }
	   protected static void sethPaths()
	   {
		   if (isWindows())
		   {
			   Negocio.dbPath = "c:/dbproductos.db";
		   }
		   else
		   {
			   Negocio.dbPath = "/home/casa/dbproductos.db";
		   }
	   }
}
